import request from "@/utils/request";

// 获取设备列表
export function queryDeviceInfoList(params) {
  return request({
    url: '/admin/deviceInfo/queryDeviceInfoList',
    method: 'get',
    params,
  })
}

// 删除雷达
export function deleteDevice(params) {
  return request({
    url: '/admin/deviceInfo/deleteDevice/' + params,
    method: 'delete',
  })
}

// 修改别名
export function updateDeviceByName(params) {
  return request({
    url: '/admin/deviceInfo/updateDeviceByName',
    method: 'post',
    data: params,
  })
}

// 修改设备状态
export function updateDeviceStatus(params) {
  return request({
    url: '/admin/deviceInfo/updateDeviceStatus',
    method: 'post',
    data: params,
  })
}

// 分配员工
export function assignDeviceToUser(params) {
  return request({
    url: '/admin/deviceInfo/assignDeviceToUser',
    method: 'post',
    data: params,
  })
}
